package com.baidu.controller;
import com.trade.Main;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("/AliPay")
public class controller {
    @Autowired(required = false)
    private Main main;
    @RequestMapping("/faleBack")
    @ResponseBody
    public Boolean Alipay(String WIDTRout_trade_no,String WIDTRrefund_amount,String WIDTRrefund_reason){
        Main main = new Main();
        main.test_trade_refund(WIDTRout_trade_no,WIDTRrefund_amount
                ,WIDTRrefund_reason);

        return true;
    }
}
